<?php

// @formatter:off
/**
 * @file ct.search.updateindex.php
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * $Id: ct.search.updateindex.php 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/cron/ct.search.updateindex.php $
 */
// @formatter:on

class WCUpdateSearchIndex extends WCCronTool {
	public function run($spacer = "") {
		WCSearch::I()->updateIndex(true, $spacer);
	}
	public function showHelp($spacer = "") {
		echo "{$spacer}This tool updates search index by loading all indexable items.\n\n";
		echo "{$spacer}It requires no extra parameters.\n";
	}
	protected function loadOptions() {
		$this->_optionsLoaded = true;
	}
}

?>